package com.ncs.base.task.service;

import com.baomidou.mybatisplus.service.IService;
import com.ncs.base.task.entity.AddRequest;
import com.ncs.base.task.entity.ResultBO;
import com.ncs.base.task.entity.TimeTaskEntity;

public interface TimedTaskService extends IService<TimeTaskEntity> {


    /**
     * 添加定时任务
     * @param addRequest
     */
    ResultBO addQuartzJob(AddRequest addRequest);

    /**
     * 删除定时任务
     * @param taskId
     * @return
     */
    ResultBO deleteQuartzJob(Integer taskId) throws Exception;

	ResultBO demo() throws Exception;

	ResultBO updateQuartzJob(AddRequest addRequest)throws Exception;

	ResultBO selectQuartzJobList(AddRequest addRequest)throws Exception;
}

